package com.cym.mapper;

import com.cym.dto.ProductParam;
import com.cym.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {
    List<Product> getProductList(@Param("productParam") ProductParam productParam);

    String add(Product product);

    String update(Product product);

    String delete(Integer productId);
}
